package com.gjs.common.enums.entity;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.gjs.common.enums.IEntityEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CurrencyEnum implements IEntityEnum {
    @ApiModelProperty("人民币")
    CNY(1, "人民币"),
    @ApiModelProperty("港元")
    HKD(2, "港元"),
    @ApiModelProperty("澳门元")
    MOP(3, "澳门元"),
    @ApiModelProperty("新台币")
    TWD(4, "新台币"),
    @ApiModelProperty("美元")
    USD(5, "美元"),
    @ApiModelProperty("欧元")
    EUR(6, "欧元"),
            ;
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String text;
}
